package cn.yujiago.miaosha.service;

import cn.yujiago.miaosha.dto.GoodsDTO;

import java.util.List;

public interface GoodsService {

    List<GoodsDTO> getMiaoshaList();

    // 根据商品ID获取秒杀商品详情
    GoodsDTO getGoodsDetail(Long goodsId);

    GoodsDTO getGoodsDTOById(Long goodsId);

    // 减库存
    boolean reduceStock(GoodsDTO goods);
}
